To fully understand how loop works, I try to break down the loop and practice like below.
var sum=0;
var n=1;
while(n<=200){
    sum=sum+n; → sum+=n
    n++;
}
alert(sum);

var x=0;
for(var i=0;i<200;i++){
    if(i%4==0){ → i can be divided exactly by 4.
        continue;
    }
    x++;
}
alert(x);

Feel free to comment and share your ideas below to learn together!
If you guys find this article helpful, please kindly do the writer a favor — LIKE this article.